<script language="javascript" type="text/javascript">if (typeof jQuery=='undefined'){document.write('\<script type="text/javascript" src="<?=$site_path?>/templates/default/jq/jquery.js"\>\</script\>');}</script>
<script language="javascript" type="text/javascript" src="<?=("{$site_path}/templates/default/jq/floating.js")?>"></script>
<style type="text/css">
.online_service{position:absolute;width:110px;height:auto;top:10px;right:10px;padding:0px;margin:0px;border:0px solid #2266AA;z-index:100;}
.service_list{margin:0px;padding:0px;}
.service_list li{margin:0px;padding:0px;list-style-type:none;list-style-position:outside;}
</style>
<?php 
$online_service_skin = mt_rand(0, 44);
//$online_service_skin = 26;
$top_img_size = getimagesize("{$site_dir}/templates/default/skin/onlineservice/{$online_service_skin}/top.gif");
$bottom_img_size = getimagesize("{$site_dir}/templates/default/skin/onlineservice/{$online_service_skin}/bottom.gif");
?>
<div id="online_service_info" class="online_service">
	<div align="right" style="width:<?=($top_img_size[0])?>px; height:<?=($top_img_size[1])?>px; margin:0px; padding:0px; background-image: url(<?=("{$site_path}/templates/default/skin/onlineservice/{$online_service_skin}/top.gif")?>);background-repeat: no-repeat;">
    	<a href="#service_close()" onclick="return floatingMenu.hide()"><img style="margin-right:2px; margin-top:2px" src="<?=("{$site_path}/templates/default/skin/onlineservice/close_btn.gif")?>" width="18" height="18" border="0" /></a>
    </div>
	<div style="width:<?=($top_img_size[0])?>px; height:auto; margin:0px; padding:0px; background-image: url(<?=("{$site_path}/templates/default/skin/onlineservice/{$online_service_skin}/middle.gif")?>);background-repeat: repeat-y;">
    	<ul class="service_list" style="margin:0px; padding-left:15px; padding-top:0px; padding-bottom:0px">
                <?php if(isset($online_service['qq']) && is_array($online_service['qq']) && count($online_service['qq']) ) foreach($online_service['qq'] as $k => $v) {?>
                <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=$v?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?=$v?>:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
                <?php }?> 
                <?php if(isset($online_service['tb']) && is_array($online_service['tb']) && count($online_service['tb']) ) foreach($online_service['tb'] as $k => $v) {?>
                <li><a target="_blank" href="http://amos.alicdn.com/msg.aw?v=2&uid=<?=$v?>&site=cnalichn&s=10&charset=UTF-8" ><img border="0" src="http://amos.alicdn.com/online.aw?v=2&uid=<?=$v?>&site=cnalichn&s=10&charset=UTF-8" alt="点击这里给我发消息" /></a></li>
                <?php }?>
                <?php if(isset($online_service['ww']) && is_array($online_service['ww']) && count($online_service['ww']) ) foreach($online_service['ww'] as $k => $v) {?>
                <li><a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid=<?=$v?>&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid=<?=$v?>&site=cntaobao&s=1&charset=utf-8" alt="点击这里给我发消息" /></a></li>
                <?php }?>   
                <?php if(isset($online_service['tel']) && is_array($online_service['tel']) && count($online_service['tel']) ) foreach($online_service['tel'] as $k => $v) {?>
                <!--<li><?=$v?></li> -->
                <?php }?> 
    	</ul>
    </div>
    <div style="width:<?=($bottom_img_size[0])?>px; height:<?=($bottom_img_size[1])?>px; margin:0px; padding:0px; background-image: url(<?=("{$site_path}/templates/default/skin/onlineservice/{$online_service_skin}/bottom.gif")?>);background-repeat: no-repeat;"></div>
</div> 
<script type="text/javascript">  
floatingMenu.add('online_service_info',  {  targetLeft: undefined,  targetRight: 5,   targetTop: undefined,  targetBottom: undefined,  centerX: false,  centerY: true,  snap: true  }); 
floatingMenu.hide = function()  {  floatingArray[0].menu.style.visibility='hidden';   return false;  }  
floatingMenu.show = function()  {  floatingArray[0].menu.style.visibility='';   return false;  }  
</script> 